
import { JsonUtil } from "db://app-game/core/utils/JsonUtil";

export class TableRoleJob {
    static TableName: string = "RoleJob";

    public data: any;

    init(id: number) {
        var table = JsonUtil.get(TableRoleJob.TableName);
        this.data = table[id];
        this.id = id;
    }

    /** 编号【KEY】 */
    id: number = 0;

    /** 名称 */
    get name(): string {
        return this.data.name;
    }
    /** 描述 */
    get description(): string {
        return this.data.description;
    }
    /** 武器类型 */
    get weaponType(): any {
        return this.data.weaponType;
    }
    /** 基础属性 */
    get attribute(): any {
        return this.data.attribute;
    }
    /** 每级成长属性 */
    get attributeGrowh(): any {
        return this.data.attributeGrowh;
    }
    /** 等级上限 */
    get maxLevel(): number {
        return this.data.maxLevel;
    }
    /** 上身骨架 */
    get upperBody(): any {
        return this.data.upperBody;
    }
    /** 下身骨架 */
    get lowerBody(): any {
        return this.data.lowerBody;
    }
    /** 角色头像图片 */
    get profilePicture(): string {
        return this.data.profilePicture;
    }
    /** 预制件 */
    get prefabPath(): string {
        return this.data.prefabPath;
    }
}
    